package com.fone.player.client;

import java.util.List;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

@Root(strict = false)
public class TopspotRst extends Rst {

	/** 服务器地址. */
	@Element (required=false)
	public String host;
	
	/** 资源服务器地址. */
	@Element (required=false)
	public String shost;
	
	@Element (required=false)
	public int showposter;
	
	@Element (required=false)
	public Modules modules;
	
	@Root(strict = false)
	public static class Module{
		
		@Attribute (required=false)
		public String icon; 
		
		@Attribute (required=false)
		public String memo; 
		
		@Attribute (required=false)
		public String type; 
		
		@Attribute (required=false)
		public String url; 
		
		@Attribute (required=false)
		public String name; 
		
		@Element (required=false)
		public Cnts cnts;
		
	}
	
	@Root(strict = false)
	public static class Cnt{
		
		@Attribute (required=false)
		public String showcount; 
		
		@Attribute (required=false)
		public String favtyp; 
		
		@Attribute (required=false)
		public String rmdval; 
		
		@Attribute (required=false)
		public String rmd; 
		
		@Attribute (required=false)
		public String furl; 
		
		@Attribute (required=false)
		public String ftv; 
		
		@Attribute (required=false)
		public int utp; 
		
		@Attribute (required=false)
		public String pic2; 
		
		@Attribute (required=false)
		public String pic1; 
		
		@Attribute (required=false)
		public String url; 
		
		@Attribute (required=false)
		public String name; 
		
		@Attribute (required=false)
		public String desc; 
		
		@Attribute (required=false)
		public String btnply; 
		
		@Attribute (required=false)
		public String ourl; 
		
	}
	
	@Root(strict = false)
	public static class Modules{
		
		/** 栏目列表. */
		@ElementList(inline=true, entry="module", required=false)
	    public List<Module> moduleList; 
		
	}
	
	@Root(strict = false)
	public static class Cnts{
		
		/** 排行列表. */
		@ElementList(inline=true, entry="cnt", required=false)
	    public List<Cnt> cntList; 
		
	}
}
